<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <title>ajax.html</title>
	
    <meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
    <meta http-equiv="description" content="this is my page">
    <meta http-equiv="content-type" content="text/html; charset=UTF-8">
    <script type="text/javascript" src="jquery-3.1.0.js"></script>
    <!--<link rel="stylesheet" type="text/css" href="./styles.css">-->
	<script type="text/javascript">
	$(function(){
		//静态方法
		$.extend({
			add:function(p1,p2){
				return p1+p2;
			}
		})
		alert($.add(1,5));
		//实例方法拓展
		$.fn.extend({
			value:function(){
				//this是jQuery对象
				return this.val();
			}
		})
		alert($("input[name='us']").value());
	})
	
	</script>
  </head>
  	
  <body>
   	<input type="text" name="us" value="666"/>
  </body>
</html>
